home *** CD-ROM | disk | FTP | other *** search
- echo off
- cls
- echo **** This demo file will convert a short test document through
- echo **** some of the sample tables, and display the conversion on the
- echo **** screen.
- echo
- echo **** If you print each of these screen displays with the
- echo **** Print Screen key (PrtSc), you can compare them later.
- echo
- pause
- cls
- echo **** This is the original text file that we will convert ****
- type demotest
- pause
- cls
- echo **** Compress all multiple adjacent spaces ****
- echo table used: COMPRESS.S
- snr32 demotest con compress.s
- pause
- cls
- echo **** Turn l and O into 1 and 0 ****
- echo table used: EL2ONE.S
- snr32 demotest con el2one.s
- pause
- cls
- echo **** Turn all caps into upper and lower case ****
- echo table used: CAP2LC1.S
- snr32 demotest con cap2lc1.s
- pause
- cls
- echo **** Turn the file into all upper case ****
- echo table used: LC2CAP.S
- snr32 demotest con lc2cap.s
- pause
- cls
- echo **** Make left-and-right facing quotes out of double quotes ****
- echo table used: QUOTES.S
- snr32 demotest con quotes.s
- pause
- cls
- echo **** Display all non-ASCII characters as HEX codes ****
- echo table used: VTYPE.S
- snr32 demotest con vtype.s
- pause
- cls
- echo **** Next we will show how a typesetting file can have its codes
- echo **** stripped clean. The sample contains Penta System codes (which
- echo **** are more or less similar to other code-driven front-end
- echo **** typesetters).
- echo
- pause
- cls
- echo **** Original Penta-coded file ****
- type pentatst
- pause
- cls
- echo **** Same file after removing Penta typesetting codes ****
- echo table used: NOCODES.S
- snr32 pentatst con nocodes.s
- pause
- cls
- echo **** The next run will show how tab codes can be inserted into
- echo **** an uncoded ASCII file. The codes employed here are a generic
- echo **** pseudo-code which can be modified (of course) to fit your
- echo **** application. ASCII hex 09 is used as the tab character.
- echo
- pause
- cls
- echo **** Original ASCII file ****
- type tabtest
- pause
- cls
- echo **** Same file after converting to tab codes ****
- echo table used: SPC2TAB.S
- snr32 tabtest con spc2tab.s
- pause
- cls
- echo **** Or, using TABULAR.S, you can have
- echo DIFFERENT tab codes between each column ****
- echo tables used: TABULAR.S & TABULAR2.S
- snr32 tabtest con tabular.s tabular2.s
- echo **** You can even change the order of VARIABLE LENGTH COLUMNS!
- echo **** Watch the last 5 lines closely! We'll swap the first and
- echo **** third tab columns, but leave the codes where they are.
- echo
- pause
- cls
- echo **** Same file, with first and third
- echo columns swapped ****
- echo table used: SWAPTABS.S
- snr32 tabtest con tabular.s tabular2.s swaptabs.s
- pause
- cls
- echo **** The next run will show how a fixed-length data file
- echo **** can be transformed into an ASCII text file.
- echo
- echo **** A fixed-length file contains no carriage returns, so data will
- echo **** appear to run together on the screen. This makes it very difficult
- echo **** to edit using normal word processing programs.
- echo
- pause
- cls
- echo **** Original fixed-length data file (record length = 60) ****
- type fixed
- pause
- cls
- echo **** Same file in ASCII text format ****
- echo table used: FIXED2CR.S
- snr32 fixed con fixed2cr.s
- pause
- cls
- echo **** The next run will show how the fields in a comma-quote-delimited
- echo **** text file can be transformed into a fixed-length file.
- echo
- pause
- cls
- echo **** Original delimited text file ****
- type merge
- pause
- cls
- echo **** Same file in fixed-length ASCII ****
- echo table used: SDF2FIX.S
- snr32 merge con sdf2fix.s
- pause
- cls
- echo END OF SNR DEMO. THANK YOU FOR USING SNR.
-